package com.jic.member.controller.manage;

import com.jic.common.base.vo.PageResult;
import com.jic.member.request.MemberGrowthRuleRequest;
import com.jic.member.response.MemberGrowthOrderResponse;
import com.jic.member.service.MememberGrowthOrderRechargeService;
import com.jic.common.base.vo.RestResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("growthOrderRule")
public class MemberGrowthOrderController {
    @Autowired
    private MememberGrowthOrderRechargeService mememberGrowthOrderRechargeService;
    @ApiOperation("根据成长值id查询下单，充值成长值规则")
    @RequestMapping("getRrowthOrderRuleById")
    public RestResult<MemberGrowthOrderResponse> getRrowthOrderRuleById(@RequestBody MemberGrowthRuleRequest request){
        return mememberGrowthOrderRechargeService.getRrowthOrderRuleById(request);
    }
}
